package com.hello.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hello.common.core.annotation.Excel;
import com.hello.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 信笺模板管理对象 sd_stationery_templates
 * 
 * @author hello
 * @date 2025-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StationeryTemplates extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板ID，主键，自增 */
    private Long templateId;

    /** 模板名称，不能为空 */
    @Excel(name = "模板名称，不能为空")
    private String name;

    /** 模板描述 */
    @Excel(name = "模板描述")
    private String description;

    /** 模板分类（极简，治愈，恋人，迷茫等） */
    @Excel(name = "模板分类", readConverterExp = "极=简，治愈，恋人，迷茫等")
    private String category;

    /** 模板类型：电子或纸质设计 */
    @Excel(name = "模板类型：电子或纸质设计")
    private String type;

    /** 预览图URL */
    @Excel(name = "预览图URL")
    private String previewImageUrl;

    /** 电子资源下载URL */
    @Excel(name = "电子资源下载URL")
    private String digitalAssetUrl;

    /** 价格，默认为0 */
    @Excel(name = "价格，默认为0")
    private BigDecimal price;

    /** 是否激活，默认为激活状态 */
    @Excel(name = "是否激活，默认为激活状态")
    private Integer isActive;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPreviewImageUrl(String previewImageUrl) 
    {
        this.previewImageUrl = previewImageUrl;
    }

    public String getPreviewImageUrl() 
    {
        return previewImageUrl;
    }
    public void setDigitalAssetUrl(String digitalAssetUrl) 
    {
        this.digitalAssetUrl = digitalAssetUrl;
    }

    public String getDigitalAssetUrl() 
    {
        return digitalAssetUrl;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("templateId", getTemplateId())
            .append("name", getName())
            .append("description", getDescription())
            .append("category", getCategory())
            .append("type", getType())
            .append("previewImageUrl", getPreviewImageUrl())
            .append("digitalAssetUrl", getDigitalAssetUrl())
            .append("price", getPrice())
            .append("isActive", getIsActive())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
